<template>
	<view>
		<u-navbar back-text="服务" :is-fixed="true" :is-back="true" :back-text-style="color" back-icon-color="#fff" :background="background">
			<view class="slot-wrap">
				<u-search placeholder="日照香炉生紫烟" v-model="keyword" shape="square" height="43" border-color="#fff" :show-action="false"></u-search>
			</view>
		</u-navbar>
		<view class="conten">
			<view class="conton-top">
				<view class="tab_list">
					<view v-for="(item,index) in tab_list" :key='index' :class="{items:true,items_active:tab_index==index}" @click="tabs1(index)">{{item}}</view>

				</view>
				<view v-show="tab_index == 0">
					<branchs></branchs>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import branchs from "./components/branchs.vue"
	export default {
		components: {
			branchs
		},
		data() {
			return {
				tab_list: ['美发', '美容', '美妆', '美甲', '美体'],
				tab_index: 0,
				background: {
					backgroundColor: '#00c6c2',
				},
				color: {
					color: '#fff',
					fontSise: '34rpx',
					width: '35px'
				}
			}
		},

		methods: {
			tabs1(index) {
				this.tab_index = index
			},
		},
		created() {

		}
	}
</script>

<style scoped lang="less">
	.slot-wrap {

		display: flex;
		align-items: center;
		padding: 0 25rpx;

		u-search {
			width: 330rpx;
			background-color: #fff;
			border-radius: 10rpx;
		}
	}

	.tab_list {
		padding: 30rpx 40rpx;
		display: flex;
		align-items: flex-end;
		justify-content: space-between;
		background: white;

		.items_active {
			border-bottom: 4rpx solid #00C6C2;
			font-weight: bold !important;
			color: #00C6C2 !important;
		}

		.items {
			height: 60rpx;
			font-size: 32rpx;
			font-family: PingFang;
			font-weight: 500;
			color: #000;
		}
	}
</style>
